package org.example.handler;

import lombok.extern.slf4j.Slf4j;
import org.example.annotations.BizService;
import org.example.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author xiajiqiu
 * @since 2024/6/12 22:32
 */

@Slf4j
@BizService
public class HelloHandler {

    @Value("${spring.application.name:}")
    private String applicationName;

    @Autowired
    private HelloService helloService;

    public String hello(String name) {
        return helloService.hello(applicationName + ":" + name);
    }
}
